package ${package.inputDTOClassPackage};

import java.io.Serializable;

import ${package.ParamGroupDTOPackage};

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
* 表 名： ${tableName}
* 注 释： ${tableComment} 输入dto
*
* @author ${author}
* @date ${createDate}
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ${entity}InputDTO implements Serializable {

    private static final long serialVersionUID = 1L;

<#-- list指令 迭代循环 -->
<#list fields as field>
   <#if field.propertyName == "id">
    /**
     * ${field.remark}
     */
    @NotNull(message = "id不能为空",groups = ParamGroupDTO.Update.class)
    private ${field.propertyType} ${field.propertyName};

   <#elseif field.propertyName == "createdAt" || field.propertyName == "updatedAt">
   <#else>
    /**
     * ${field.remark}
     */
    private ${field.propertyType} ${field.propertyName};

   </#if>
</#list>

}